const {	myRequest} = require('@/utils/request.js')
const {
	BASE_URL
} = require('@/env.js');
module.exports = {	// 登录	login: (params) => myRequest({		url: BASE_URL + "api/base/modleLogin",		methods: 'POST',
		auth:false,
		interception:true,
		data: params
	}),	// 自动登录	selectUserByTerminalModel: (params) => myRequest({		url: BASE_URL + "api/base/selectUserByTerminalModel",		methods: 'POST',
		auth:false,
		interception:true,
		data: params
	}),	// 退出登录	deleteLoginByTerminalModel: (params) => myRequest({		url: BASE_URL + "api/base/deleteLoginByTerminalModel",		methods: 'POST',
		auth:false,
		interception:true,
		data: params
	}),
	// 退出登录
	unlogin: (params) => myRequest({
		url: BASE_URL + "sysWxInfor/unbindWx",
		methods: 'POST',
		auth:false,
		data: params,
		interception:true,
	}),
	
	// 注册	doRegister: (params) => myRequest({		url: "ydylappCommon/doRegister",		methods: 'POST',		data: params,
		auth:false
	}),
	// 注册验证,是否重复注册	isUserExist: (params) => myRequest({		url: BASE_URL + "ydylappCommon/isUserExist",		methods: 'POST',		data: params,		interception:true,		auth:false	}),
	messageVerification: (params) => myRequest({		url: BASE_URL + "api/sms/getUpdPasswordCode",		methods: 'POST',		data: params,		auth:true,
		interception:true,	}),
	registerVerification: (params) => myRequest({		url: BASE_URL + "api/sms/getRegisterCode",		methods: 'POST',		data: params,		auth:false,
		interception:true	}),
	//忘记登录密码	updatePassword: (params) => myRequest({		url: BASE_URL + "api/base/forgetPassword",		methods: 'POST',
		auth:true,		data: params,
		interception:true,	}),
	//忘记支付密码	forgetPayPassword: (params) => myRequest({		url: BASE_URL + "api/base/forgetPayPassword",		methods: 'POST',
		auth:true,		data: params,
		interception:true,	}),
	selectSysAgreemen: (params) => myRequest({		url: BASE_URL + "sysAgreement/selectSysAgreement",		methods: 'POST',		data: params,
		auth:false,		interception:true	}),
			
}
